<%@ page language="java" import="java.util.*" pageEncoding="utf-8"%>   
<%@ taglib uri="/struts-tags" prefix="s" %>   
    
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">   
<html>   
  <head>    
    <title>showcase upload</title>   
  </head>    
  <body>   
     <h1>FileUpLoad Exmaple</h1>   
     <s:actionerror cssStyle="color:red"/>    
     <s:fielderror cssStyle="color:red"/>
     <!-- 表单 -->   
     <s:form action="doUpload" enctype="multipart/form-data" method="post">   
        <s:file name="upload" label="File"></s:file>   
        <s:textfield name="caption" label="Caption"></s:textfield>
        <s:token></s:token>
        <s:submit></s:submit>   
     </s:form>   
       
  </body>   
</html>   
